package com.sc.VenusQueryBeta.contract.account.zhuanma;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseFragment;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyListBean;
import com.sc.VenusQueryBeta.model.bean.account.zhuanma.ZhuanMaList1;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2018/11/8.
 */

public interface ZhuanMa01Contract {
    abstract class ZhuanMa01Presenter extends BasePresenter<IZhuanMa01Model,IZhuanMa01View> {
        //加载转码明细数据
        public abstract void getZhuanMa01(String serverAddress, String projectName, int serverPort,int clientindex,int start, int limit,
                                          String clientAppmsgnum,String roomonth, String roomyear,String currencynameCN);

        //查询币种
        public abstract void  queryCurrencyList(String serverAddress, String projectName, int serverPort);
        /**
         * 加载更多t转码
         */
        public abstract void getMoreZhuanMa01(String serverAddress, String projectName, int serverPort,int clientindex,int start, int limit,
                                              String clientAppmsgnum,String roomonth, String roomyear,String currencynameCN);
    }
    interface IZhuanMa01Model extends IBaseModel {

        //查询币种
        Observable<CurrencyListBean> queryCurrencyList(String serverAddress, String projectName, int serverPort);

        //转码明细
        Observable<ZhuanMaList1> getZhuanMa01(String serverAddress, String projectName, int serverPort, int clientindex, int start, int limit,
                                              String clientAppmsgnum, String roomonth, String roomyear,String currencynameCN);
    }
    interface IZhuanMa01View extends IBaseFragment{

        void showNetworkError(Throwable throwable);

        /** 显示加载更多错误
         */
        void showLoadMoreError();

        /**
         * 显示没有更多数据
         */
        void showNoMoreData();

        //查询币种列表
        void showqueryCurrencyList(CurrencyListBean currencyListBean);

        /**
         *获转码01數據成功
         * @param zhuanMaList1
         */
        void shoZhuanmaData1Success(ZhuanMaList1 zhuanMaList1);
    }
}
